<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>啊大姐sd卡了房间</div>
</body>
<script>
    var xhr = new XMLHttpRequest();
    xhr.open('post', '/reg', true);
    xhr.responseType = 'json';
    xhr.onreadystatechange = function () {
        if (xhr.readyState == 4 && xhr.status == 200) {
            console.log(xhr.response)
        }
    };
    xhr.send(JSON.stringify({name: 'wangyuan'}))
</script>
</html>
